package com.lsiyun.sync_file;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class Utils {
    public static void transData(InputStream inputStream, OutputStream outputStream) throws Exception {
        byte[] bytes = new byte[1024 * 1024 * 10];
        int ns = -1;
        while ((ns = inputStream.read(bytes)) > 0) {
            outputStream.write(bytes, 0, ns);
        }
    }
}
